package morning.cat.exception.runtimeexception;

import org.junit.Test;

import java.io.IOException;

/**
 * https://my.oschina.net/mengzhang6/blog/1613042
 *
 * @author mengzhang6
 * @date 2018/12/25 9:28
 */
public class RuntimeExceptionTest {



    @Test
    public void test() throws InterruptedException {
        RuntimeException runtimeException = new RuntimeException();
        int y = 0;
        if (y == 0) {
            throw new ArithmeticException();
        }
        int z = 6 / y;
        ClassCastException classCastException;
        IllegalArgumentException illegalArgumentException;
        NumberFormatException numberFormatException;
        IndexOutOfBoundsException indexOutOfBoundsException;


        IOException ioException;

        Thread.sleep(1000);
    }
}
